home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-03-24 | 3.3 KB | 63 lines | [TEXT/ALFA] |
-
- LESSON 5 "Beyond MacQForth"
- --------------------------------------------------------------------------------
-
- Contents of this lesson:
-
- 1. Known bugs in MacQForth
- 2. What's not here that should be
- 3. Now what?
-
- ================================================================================
-
- The grim truth revealed, bugs *do* exist in MacQForth. Also, some of
- what is "missing" in QForth and what to do now that you know something
- about the language.
-
-
-
- Known bugs in MacQForth
- -----------------------
-
- All real programs have real bugs, only "quiche-eater" programs are
- completely bug free. Here's a list of the known MacQForth bugs:
-
-
- * "if ... then" must be "if ... else then" to work
-
- * "r@" doesn't work, use "R@" as defined in EXTEND.4TH
-
- * the first line of a "read" file is ignored, so leave it blank
- or make it a comment
-
- * words added to the dictionary cannot be referenced on the line
- on which they are defined:
-
- : hi ." hola" ; hi ( defines hi but does not execute it )
- variable one 0 one ! ( causes an error and one is not defined )
- create one one c@ ( same as 'variable' )
-
- * desk accessories do not run in MacQForth
-
-
-
-
- What's not here that should be
- ------------------------------
-
- A lot. QForth is a minimal Forth, useful but lacking much. A useful
- extension to QForth would be hexadecimal mode. What is really lacking
- is what is known as the "pearl of Forth", the ability to extend the
- compiler itself through CREATE and DOES> . This ability would have
- made the matrix exercise far less of a trial. Also missing is the
- entire realm of immediate words and state smart words. I will not
- make any attempt to address these topics, refer to the supplied
- references for more information.
-
-
-
-
- Now what?
- ---------
-
- If you